.class public Lcom/estrongs/android/view/ImageFileGridViewWrapper;
.super Lcom/estrongs/android/view/FileGridViewWrapper;
.source "ImageFileGridViewWrapper.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/view/ImageFileGridViewWrapper$d;,
        Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageEfficientAdapter;,
        Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;,
        Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;
    }
.end annotation


# static fields
.field private static j1:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field T0:I

.field protected U0:Z

.field private V0:Z

.field private W0:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field private X0:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation
.end field

.field private Y0:Z

.field private Z0:I

.field private a1:I

.field private b1:I

.field private c1:I

.field private d1:I

.field private e1:Z

.field f1:Lcom/estrongs/android/view/ImageFileGridViewWrapper$d;

.field private g1:Z

.field private h1:Z

.field private i1:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Ljava/util/Hashtable;

    invoke-direct {v0}, Ljava/util/Hashtable;-><init>()V

    sput-object v0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->j1:Ljava/util/Map;

    return-void
.end method

.method public constructor <init>(Landroid/app/Activity;Les/q70;Lcom/estrongs/android/view/FileGridViewWrapper$a0;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2, p3}, Lcom/estrongs/android/view/FileGridViewWrapper;-><init>(Landroid/content/Context;Les/q70;Lcom/estrongs/android/view/FileGridViewWrapper$a0;)V

    const/4 p1, 0x1

    .line 2
    iput p1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->T0:I

    const/4 p2, 0x0

    .line 3
    iput-boolean p2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->U0:Z

    .line 4
    iput-boolean p2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->V0:Z

    .line 5
    new-instance p3, Ljava/util/HashMap;

    invoke-direct {p3}, Ljava/util/HashMap;-><init>()V

    iput-object p3, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->W0:Ljava/util/Map;

    .line 6
    new-instance p3, Ljava/util/HashMap;

    invoke-direct {p3}, Ljava/util/HashMap;-><init>()V

    iput-object p3, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->X0:Ljava/util/Map;

    .line 7
    iput-boolean p2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->Y0:Z

    .line 8
    iput p1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->Z0:I

    .line 9
    iput-boolean p2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->e1:Z

    .line 10
    iput-boolean p2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->g1:Z

    .line 11
    iput-boolean p2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->h1:Z

    const/4 p1, 0x0

    .line 12
    iput-object p1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->i1:Ljava/lang/String;

    .line 13
    new-instance p1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageEfficientAdapter;

    invoke-direct {p1, p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageEfficientAdapter;-><init>(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)V

    iput-object p1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->h:Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;

    .line 14
    new-instance p2, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;

    invoke-direct {p2, p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper$c;-><init>(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)V

    invoke-virtual {p1, p2}, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->a(Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;)V

    .line 15
    iget-object p1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->g:Landroidx/recyclerview/widget/RecyclerView;

    iget-object p2, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->h:Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;

    invoke-virtual {p1, p2}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    .line 16
    iget-object p1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->h:Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;

    new-instance p2, Lcom/estrongs/android/view/ImageFileGridViewWrapper$a;

    invoke-direct {p2, p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper$a;-><init>(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)V

    invoke-virtual {p1, p2}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->registerAdapterDataObserver(Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;)V

    .line 17
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/ui/pcs/f;->k()Lcom/estrongs/android/ui/pcs/f;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/ui/pcs/f;->i()Z

    move-result p1

    iput-boolean p1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->h1:Z

    .line 18
    invoke-static {}, Lcom/estrongs/android/ui/pcs/f;->k()Lcom/estrongs/android/ui/pcs/f;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/ui/pcs/f;->h()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->i1:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 19
    :catch_0
    iget-object p1, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const p2, 0x7f0700a4

    invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->Z0:I

    return-void
.end method

.method public constructor <init>(Landroid/app/Activity;Les/q70;Lcom/estrongs/android/view/FileGridViewWrapper$a0;Z)V
    .locals 0

    .line 20
    invoke-direct {p0, p1, p2, p3}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;-><init>(Landroid/app/Activity;Les/q70;Lcom/estrongs/android/view/FileGridViewWrapper$a0;)V

    .line 21
    iput-boolean p4, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->e1:Z

    return-void
.end method

.method private O0()V
    .locals 8

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->e1:Z

    const/4 v1, 0x2

    if-eqz v0, :cond_0

    .line 2
    iput v1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->c1:I

    .line 3
    iput v1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->d1:I

    .line 4
    invoke-virtual {p0}, Lcom/estrongs/android/view/h0;->j()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->getMeasuredWidth()I

    move-result v0

    div-int/2addr v0, v1

    iput v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->b1:I

    iput v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->a1:I

    goto/16 :goto_2

    .line 5
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->I0()Z

    move-result v0

    if-eqz v0, :cond_4

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/utils/t;->d(Landroid/content/Context;)[I

    move-result-object v0

    const/4 v2, 0x0

    .line 7
    aget v3, v0, v2

    const/4 v4, 0x1

    aget v5, v0, v4

    invoke-static {v3, v5}, Ljava/lang/Math;->min(II)I

    move-result v3

    .line 8
    aget v5, v0, v2

    aget v0, v0, v4

    invoke-static {v5, v0}, Ljava/lang/Math;->max(II)I

    move-result v0

    .line 9
    iget-object v5, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-static {v5}, Lcom/estrongs/android/pop/utils/t;->i(Landroid/content/Context;)Z

    move-result v5

    .line 10
    iget-object v6, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-virtual {v6}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    invoke-virtual {v6}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v6

    iget v6, v6, Landroid/content/res/Configuration;->orientation:I

    if-ne v6, v4, :cond_1

    const/4 v2, 0x1

    :cond_1
    const/4 v4, 0x4

    if-nez v2, :cond_3

    if-eqz v5, :cond_2

    goto :goto_0

    :cond_2
    const-wide/high16 v1, 0x4010000000000000L    # 4.0

    int-to-double v4, v0

    int-to-double v6, v3

    .line 11
    invoke-static {v4, v5}, Ljava/lang/Double;->isNaN(D)Z

    invoke-static {v6, v7}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v4, v6

    mul-double v1, v1, v4

    double-to-int v1, v1

    .line 12
    div-int v2, v0, v1

    iput v2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->a1:I

    const-wide/high16 v2, 0x4000000000000000L    # 2.0

    mul-double v4, v4, v2

    double-to-int v2, v4

    .line 13
    div-int/2addr v0, v2

    iput v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->b1:I

    move v4, v1

    move v1, v2

    goto :goto_1

    .line 14
    :cond_3
    :goto_0
    div-int/lit8 v0, v3, 0x4

    iput v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->a1:I

    .line 15
    div-int/2addr v3, v1

    iput v3, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->b1:I

    .line 16
    :goto_1
    iput v4, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->c1:I

    .line 17
    iput v1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->d1:I

    goto :goto_2

    .line 18
    :cond_4
    iput v1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->c1:I

    .line 19
    iput v1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->d1:I

    .line 20
    invoke-virtual {p0}, Lcom/estrongs/android/view/h0;->j()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->getMeasuredWidth()I

    move-result v0

    div-int/2addr v0, v1

    iput v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->b1:I

    iput v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->a1:I

    :goto_2
    return-void
.end method

.method private P0()Z
    .locals 4

    const/4 v0, 0x1

    .line 1
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/ui/pcs/f;->k()Lcom/estrongs/android/ui/pcs/f;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/ui/pcs/f;->i()Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_2

    .line 2
    iget-boolean v1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->h1:Z

    if-nez v1, :cond_0

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->h1:Z

    return v0

    .line 4
    :cond_0
    invoke-static {}, Lcom/estrongs/android/ui/pcs/f;->k()Lcom/estrongs/android/ui/pcs/f;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/ui/pcs/f;->h()Ljava/lang/String;

    move-result-object v1

    iget-object v3, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->i1:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    return v2

    .line 5
    :cond_1
    invoke-static {}, Lcom/estrongs/android/ui/pcs/f;->k()Lcom/estrongs/android/ui/pcs/f;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/ui/pcs/f;->h()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->i1:Ljava/lang/String;

    return v0

    .line 6
    :cond_2
    iget-boolean v1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->h1:Z

    if-nez v1, :cond_3

    return v2

    .line 7
    :cond_3
    iput-boolean v2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->h1:Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return v0
.end method

.method private Q0()V
    .locals 6

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->U0:Z

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->U0:Z

    const v1, 0x7f0904c0

    .line 3
    invoke-virtual {p0, v1}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object v1

    const/4 v2, 0x0

    if-eqz v1, :cond_1

    .line 4
    invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 5
    :cond_1
    iget-object v1, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->b0:Lcom/estrongs/android/util/TypedMap;

    const/16 v3, 0xa

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "per_page"

    invoke-virtual {v1, v4, v3}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    .line 6
    iget-object v1, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->b0:Lcom/estrongs/android/util/TypedMap;

    iget v3, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->T0:I

    add-int/lit8 v4, v3, 0x1

    iput v4, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->T0:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "page"

    invoke-virtual {v1, v4, v3}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->b0:Lcom/estrongs/android/util/TypedMap;

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v3

    const-string v4, "load_next_page"

    invoke-virtual {v1, v4, v3}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    .line 8
    iget-object v1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->y:Ljava/lang/String;

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->i2(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 9
    iget-object v1, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->b0:Lcom/estrongs/android/util/TypedMap;

    iget-object v3, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->H:Ljava/util/LinkedList;

    invoke-virtual {v3}, Ljava/util/LinkedList;->size()I

    move-result v5

    sub-int/2addr v5, v0

    invoke-virtual {v3, v5}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/estrongs/fs/g;

    invoke-interface {v3}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Les/o10;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const-string v5, "max_id"

    invoke-virtual {v1, v5, v3}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    .line 10
    :cond_2
    invoke-super {p0, v0}, Lcom/estrongs/android/view/FileGridViewWrapper;->d(Z)V

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->b0:Lcom/estrongs/android/util/TypedMap;

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v0, v4, v1}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->c1:I

    return p0
.end method

.method public static a(Lcom/estrongs/fs/g;Lcom/estrongs/android/util/z;)Lcom/estrongs/fs/g;
    .locals 10
    .param p0    # Lcom/estrongs/fs/g;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p1    # Lcom/estrongs/android/util/z;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/estrongs/fs/g;",
            "Lcom/estrongs/android/util/z<",
            "Lcom/estrongs/fs/g;",
            ">;)",
            "Lcom/estrongs/fs/g;"
        }
    .end annotation

    .line 55
    invoke-interface {p0}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/fs/l;->c()Z

    move-result v0

    const-string v1, "need_210_thumbnail"

    const/4 v2, 0x1

    .line 56
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v3

    if-eqz v0, :cond_0

    invoke-interface {p0, v1, v3}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    return-object p0

    :cond_0
    const/4 v0, 0x0

    .line 57
    :try_start_0
    new-instance v9, Lcom/estrongs/android/util/TypedMap;

    invoke-direct {v9}, Lcom/estrongs/android/util/TypedMap;-><init>()V

    const-string v4, "from"

    .line 58
    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v9, v4, v5}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    const-string v4, "to"

    const/4 v5, 0x2

    .line 59
    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v9, v4, v5}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    .line 60
    invoke-interface {p0}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v4

    .line 61
    invoke-static {v4}, Lcom/estrongs/android/util/h0;->c2(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_2

    .line 62
    invoke-static {v4}, Lcom/estrongs/android/util/h0;->h2(Ljava/lang/String;)Z

    move-result p0

    if-eqz p0, :cond_1

    const-string p0, "pictures"

    goto :goto_0

    :cond_1
    const-string p0, "mine"

    .line 63
    :goto_0
    invoke-static {v4, p0}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-static {p0}, Lcom/estrongs/fs/f;->r(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object p0

    :cond_2
    move-object v5, p0

    .line 64
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v4

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    invoke-virtual/range {v4 .. v9}, Lcom/estrongs/fs/f;->a(Lcom/estrongs/fs/g;ZZLcom/estrongs/fs/h;Lcom/estrongs/android/util/TypedMap;)Ljava/util/List;

    move-result-object p0

    if-eqz p0, :cond_7

    .line 65
    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v4

    if-lt v4, v2, :cond_7

    if-nez p1, :cond_3

    const/4 p1, 0x0

    .line 66
    invoke-interface {p0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/estrongs/fs/g;

    goto :goto_1

    .line 67
    :cond_3
    invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p0

    :cond_4
    invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_5

    invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/fs/g;

    .line 68
    invoke-interface {p1, v2}, Lcom/estrongs/android/util/z;->accept(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_4

    move-object p0, v2

    goto :goto_1

    :cond_5
    move-object p0, v0

    :goto_1
    if-eqz p0, :cond_6

    .line 69
    invoke-interface {p0, v1, v3}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_6
    return-object p0

    :catch_0
    :cond_7
    return-object v0
.end method

.method public static a(Lcom/estrongs/fs/g;Z)Lcom/estrongs/fs/g;
    .locals 7

    const/4 v0, 0x0

    if-nez p0, :cond_0

    return-object v0

    .line 45
    :cond_0
    invoke-interface {p0}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/fs/l;->c()Z

    move-result v1

    const/4 v2, 0x1

    const-string v3, "need_210_thumbnail"

    if-eqz v1, :cond_1

    .line 46
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    invoke-interface {p0, v3, p1}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    return-object p0

    :cond_1
    :try_start_0
    const-string v1, "thumb-file"

    .line 47
    invoke-interface {p0, v1}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/fs/g;

    .line 48
    invoke-interface {p0}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v4

    if-nez v1, :cond_2

    .line 49
    sget-object v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->j1:Ljava/util/Map;

    invoke-interface {v1, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/fs/g;

    :cond_2
    if-eqz v1, :cond_4

    .line 50
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v5

    invoke-interface {v1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Lcom/estrongs/fs/f;->c(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_3

    return-object v1

    .line 51
    :cond_3
    sget-object v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->j1:Ljava/util/Map;

    invoke-interface {v1, v4}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    :cond_4
    if-eqz p1, :cond_5

    return-object v0

    .line 52
    :cond_5
    invoke-static {p0, v0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->a(Lcom/estrongs/fs/g;Lcom/estrongs/android/util/z;)Lcom/estrongs/fs/g;

    move-result-object p0

    if-eqz p0, :cond_6

    .line 53
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    invoke-interface {p0, v3, p1}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    .line 54
    sget-object p1, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->j1:Ljava/util/Map;

    invoke-interface {p1, v4, p0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_6
    return-object p0

    :catch_0
    return-object v0
.end method

.method private a(IZ)V
    .locals 1

    if-nez p1, :cond_0

    return-void

    .line 70
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->f:Landroidx/recyclerview/widget/GridLayoutManager;

    invoke-virtual {v0, p1}, Landroidx/recyclerview/widget/GridLayoutManager;->setSpanCount(I)V

    if-eqz p2, :cond_1

    .line 71
    iget-object p1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->h:Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    :cond_1
    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/view/ImageFileGridViewWrapper;Z)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->j(Z)V

    return-void
.end method

.method static synthetic b(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->d1:I

    return p0
.end method

.method static synthetic b(Lcom/estrongs/android/view/ImageFileGridViewWrapper;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->V0:Z

    return p1
.end method

.method static synthetic c(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->b1:I

    return p0
.end method

.method static synthetic d(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->a1:I

    return p0
.end method

.method static synthetic e(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->Z0:I

    return p0
.end method

.method static synthetic f(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->V0:Z

    return p0
.end method

.method static synthetic g(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->g1:Z

    return p0
.end method

.method static synthetic h(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->Y0:Z

    return p0
.end method

.method static synthetic i(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->Q0()V

    return-void
.end method

.method private j(Z)V
    .locals 1

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->O0()V

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->w1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->d1:I

    goto :goto_0

    :cond_0
    iget v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->c1:I

    :goto_0
    invoke-direct {p0, v0, p1}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->a(IZ)V

    return-void
.end method


# virtual methods
.method protected A0()V
    .locals 2

    .line 1
    new-instance v0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$d;

    invoke-direct {v0, p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper$d;-><init>(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)V

    iput-object v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->f1:Lcom/estrongs/android/view/ImageFileGridViewWrapper$d;

    .line 2
    iget-object v1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->g:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {v1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setOnScrollListener(Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->g:Landroidx/recyclerview/widget/RecyclerView;

    iget-object v1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->f1:Lcom/estrongs/android/view/ImageFileGridViewWrapper$d;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    return-void
.end method

.method public B0()V
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->e1:Z

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-super {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->B0()V

    return-void
.end method

.method public C0()Lcom/estrongs/fs/g;
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->D:Lcom/estrongs/fs/g;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->T:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->P()Lcom/estrongs/fs/g;

    move-result-object v0

    return-object v0

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->D:Lcom/estrongs/fs/g;

    return-object v0

    .line 5
    :cond_1
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->c2(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    const-string v0, "SP://"

    .line 6
    :cond_2
    new-instance v1, Lcom/estrongs/fs/m;

    invoke-direct {v1, v0}, Lcom/estrongs/fs/m;-><init>(Ljava/lang/String;)V

    .line 7
    invoke-virtual {p0, v1}, Lcom/estrongs/android/view/FileGridViewWrapper;->a(Lcom/estrongs/fs/g;)V

    return-object v1
.end method

.method protected G0()I
    .locals 1

    const v0, 0x7f0c0195

    return v0
.end method

.method protected H0()I
    .locals 1

    const v0, 0x7f0c0196

    return v0
.end method

.method public I0()Z
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->v1(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->Q1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 v0, 0x1

    :goto_1
    return v0
.end method

.method public J0()Z
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->w1(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->Q1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 v0, 0x1

    :goto_1
    return v0
.end method

.method public K()V
    .locals 3

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->p()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    .line 2
    div-int/lit8 v1, v0, 0xa

    rem-int/lit8 v0, v0, 0xa

    const/4 v2, 0x0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    goto :goto_0

    :cond_0
    const/4 v0, 0x1

    :goto_0
    add-int/2addr v1, v0

    iput v1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->T0:I

    .line 3
    invoke-direct {p0, v2}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->j(Z)V

    .line 4
    invoke-super {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->K()V

    return-void
.end method

.method public K0()Z
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->J0()Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->M0()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 v0, 0x1

    :goto_1
    return v0
.end method

.method public L0()Z
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->i2(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public M0()Z
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->j2(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public N0()V
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->H:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->size()I

    move-result v0

    const/4 v1, 0x1

    if-nez v0, :cond_0

    const/4 v0, 0x1

    .line 2
    :cond_0
    iget-object v2, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->b0:Lcom/estrongs/android/util/TypedMap;

    div-int/lit8 v3, v0, 0xa

    rem-int/lit8 v0, v0, 0xa

    const/4 v4, 0x0

    if-nez v0, :cond_1

    const/4 v0, 0x0

    goto :goto_0

    :cond_1
    const/4 v0, 0x1

    :goto_0
    add-int/2addr v3, v0

    mul-int/lit8 v3, v3, 0xa

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    const-string v3, "per_page"

    invoke-virtual {v2, v3, v0}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->b0:Lcom/estrongs/android/util/TypedMap;

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    const-string v3, "page"

    invoke-virtual {v0, v3, v2}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->b0:Lcom/estrongs/android/util/TypedMap;

    const/4 v2, 0x0

    const-string v3, "max_id"

    invoke-virtual {v0, v3, v2}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    .line 5
    iput-boolean v4, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->Y0:Z

    .line 6
    invoke-virtual {p0, v1}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->d(Z)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/Object;)Landroid/text/SpannableString;
    .locals 6

    .line 72
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "("

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string p2, ")"

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .line 73
    new-instance v0, Landroid/text/SpannableString;

    invoke-direct {v0, p2}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 74
    new-instance v1, Landroid/text/style/AbsoluteSizeSpan;

    const/4 v2, 0x1

    const/16 v3, 0xf

    invoke-direct {v1, v3, v2}, Landroid/text/style/AbsoluteSizeSpan;-><init>(IZ)V

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v3

    const/16 v4, 0x21

    const/4 v5, 0x0

    invoke-virtual {v0, v1, v5, v3, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 75
    new-instance v1, Landroid/text/style/AbsoluteSizeSpan;

    const/16 v3, 0xc

    invoke-direct {v1, v3, v2}, Landroid/text/style/AbsoluteSizeSpan;-><init>(IZ)V

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result p1

    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result p2

    invoke-virtual {v0, v1, p1, p2, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    return-object v0
.end method

.method protected a(Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;IZ)V
    .locals 0

    .line 76
    iget-object p1, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->d:Landroid/widget/CheckBox;

    invoke-virtual {p1, p3}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 77
    invoke-virtual {p0, p2}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->i(I)V

    return-void
.end method

.method protected a(Lcom/estrongs/fs/g;Lcom/estrongs/android/util/TypedMap;)V
    .locals 3

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->M0()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {p1}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->i2(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {p1}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->j2(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 4
    invoke-interface {p1}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->h1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 5
    invoke-interface {p1}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object p1

    const-string v0, "album"

    invoke-static {p1, v0}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/fs/f;->r(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object p1

    goto :goto_0

    .line 6
    :cond_0
    invoke-interface {p1}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->h2(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 7
    invoke-interface {p1}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object p1

    const-string v0, "pictures"

    invoke-static {p1, v0}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/fs/f;->r(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object p1

    goto :goto_0

    .line 8
    :cond_1
    invoke-interface {p1}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object p1

    const-string v0, "mine"

    invoke-static {p1, v0}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/fs/f;->r(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object p1

    .line 9
    :cond_2
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->y:Ljava/lang/String;

    if-eqz v0, :cond_3

    .line 10
    iget-object v1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->W0:Ljava/util/Map;

    iget v2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->T0:I

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-interface {v1, v0, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->X0:Ljava/util/Map;

    iget-object v1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->y:Ljava/lang/String;

    iget-boolean v2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->Y0:Z

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 12
    :cond_3
    iget-object v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->W0:Ljava/util/Map;

    invoke-interface {p1}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_4

    .line 13
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object v0

    invoke-interface {p1}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Les/p10;->b(Ljava/lang/String;)Les/q10;

    move-result-object v0

    if-eqz v0, :cond_4

    .line 14
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object v0

    invoke-interface {p1}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Les/p10;->e(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->W0:Ljava/util/Map;

    invoke-interface {p1}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->T0:I

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->X0:Ljava/util/Map;

    invoke-interface {p1}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    iput-boolean v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->Y0:Z

    goto :goto_1

    :cond_4
    const/4 v0, 0x1

    .line 17
    iput v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->T0:I

    const/4 v0, 0x0

    .line 18
    iput-boolean v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->Y0:Z

    if-nez p2, :cond_5

    .line 19
    new-instance p2, Lcom/estrongs/android/util/TypedMap;

    invoke-direct {p2}, Lcom/estrongs/android/util/TypedMap;-><init>()V

    :cond_5
    const/16 v0, 0xa

    .line 20
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    const-string v1, "per_page"

    invoke-virtual {p2, v1, v0}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    .line 21
    iget v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->T0:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->T0:I

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    const-string v1, "page"

    invoke-virtual {p2, v1, v0}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    const/4 v0, 0x0

    const-string v1, "max_id"

    .line 22
    invoke-virtual {p2, v1, v0}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    .line 23
    :goto_1
    invoke-super {p0, p1, p2}, Lcom/estrongs/android/view/FileGridViewWrapper;->a(Lcom/estrongs/fs/g;Lcom/estrongs/android/util/TypedMap;)V

    return-void
.end method

.method protected a(Les/f70;Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Les/f70;",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;)V"
        }
    .end annotation

    .line 24
    iget-object p1, p1, Les/f70;->E:Lcom/estrongs/fs/g;

    invoke-virtual {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->X()Lcom/estrongs/fs/g;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_5

    const/4 p1, 0x0

    .line 25
    iput-boolean p1, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->c0:Z

    .line 26
    iput-boolean p1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->U0:Z

    .line 27
    invoke-virtual {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->I()V

    .line 28
    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 29
    invoke-virtual {p0, p2}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->f(Ljava/util/List;)V

    .line 30
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->H:Ljava/util/LinkedList;

    invoke-virtual {p0, v0}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->d(Ljava/util/List;)V

    .line 31
    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v0

    const/16 v1, 0xa

    if-ge v0, v1, :cond_4

    .line 32
    iget v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->T0:I

    const/4 v1, 0x1

    if-le v0, v1, :cond_1

    sub-int/2addr v0, v1

    .line 33
    iput v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->T0:I

    .line 34
    :cond_1
    invoke-virtual {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->v1(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_3

    iget-boolean v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->V0:Z

    if-eqz v0, :cond_3

    .line 35
    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_2

    .line 36
    iget-object v0, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    const v2, 0x7f1106b6

    invoke-static {v0, v2}, Lcom/estrongs/android/pop/utils/i;->b(Landroid/content/Context;I)V

    .line 37
    :cond_2
    iput-boolean v1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->Y0:Z

    .line 38
    :cond_3
    iput-boolean p1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->V0:Z

    .line 39
    :cond_4
    iget-object p1, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    check-cast p1, Les/tp;

    new-instance v0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$b;

    invoke-direct {v0, p0, p2}, Lcom/estrongs/android/view/ImageFileGridViewWrapper$b;-><init>(Lcom/estrongs/android/view/ImageFileGridViewWrapper;Ljava/util/List;)V

    invoke-interface {p1, v0}, Les/tp;->a(Ljava/lang/Runnable;)V

    .line 40
    invoke-static {}, Les/mg;->f()Les/mg;

    move-result-object p1

    iget-object p2, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->y:Ljava/lang/String;

    iget-object v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->H:Ljava/util/LinkedList;

    invoke-virtual {p1, p2, v0}, Les/mg;->a(Ljava/lang/String;Ljava/util/List;)V

    .line 41
    :cond_5
    invoke-virtual {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->V()V

    .line 42
    invoke-virtual {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->O()V

    .line 43
    invoke-virtual {p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->B0()V

    .line 44
    invoke-virtual {p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->K()V

    return-void
.end method

.method public d(Z)V
    .locals 3

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->H:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->clear()V

    const/4 v0, 0x1

    const/4 v1, 0x0

    if-eqz p1, :cond_0

    .line 3
    iput-boolean v1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->Y0:Z

    .line 4
    iput-boolean v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->c0:Z

    .line 5
    :cond_0
    iget-object v2, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->D:Lcom/estrongs/fs/g;

    if-eqz v2, :cond_1

    invoke-interface {v2}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->i2(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-virtual {p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->K0()Z

    move-result v2

    if-nez v2, :cond_1

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    :goto_0
    iput-boolean v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->g1:Z

    .line 6
    invoke-super {p0, p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->d(Z)V

    return-void
.end method

.method protected f(Ljava/util/List;)V
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;)V"
        }
    .end annotation

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->I0()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    invoke-super {p0, p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->f(Ljava/util/List;)V

    goto/16 :goto_2

    .line 4
    :cond_0
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->H:Ljava/util/LinkedList;

    invoke-virtual {v0, v1}, Ljava/util/HashSet;->addAll(Ljava/util/Collection;)Z

    if-eqz p1, :cond_4

    .line 6
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_4

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->Y:Lcom/estrongs/fs/h;

    const/4 v2, 0x0

    if-eqz v1, :cond_2

    .line 8
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v2, v1, :cond_4

    .line 9
    iget-object v1, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->Y:Lcom/estrongs/fs/h;

    invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/estrongs/fs/g;

    invoke-interface {v1, v3}, Lcom/estrongs/fs/h;->a(Lcom/estrongs/fs/g;)Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 10
    iget-object v1, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->H:Ljava/util/LinkedList;

    invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 11
    invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    :cond_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 12
    :cond_2
    :goto_1
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v2, v1, :cond_4

    .line 13
    invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_3

    .line 14
    iget-object v1, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->H:Ljava/util/LinkedList;

    invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 15
    invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    :cond_3
    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    .line 16
    :cond_4
    invoke-virtual {v0}, Ljava/util/HashSet;->clear()V

    .line 17
    iget-object p1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->g:Landroidx/recyclerview/widget/RecyclerView;

    iget-object v0, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->h:Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;

    invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    :goto_2
    return-void
.end method

.method public h(I)V
    .locals 1

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->e1:Z

    if-eqz v0, :cond_0

    const p1, 0x7f11046c

    .line 3
    invoke-super {p0, p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->h(I)V

    goto :goto_0

    .line 4
    :cond_0
    invoke-super {p0, p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->h(I)V

    :goto_0
    return-void
.end method

.method public j(I)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->o:I

    return-void
.end method

.method protected k(Ljava/lang/String;)Z
    .locals 0

    const/4 p1, 0x1

    return p1
.end method

.method public q()I
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->E()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->M0()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-super {p0}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->q()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    goto :goto_0

    :cond_0
    invoke-super {p0}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->q()I

    move-result v0

    :goto_0
    return v0
.end method

.method protected u0()Z
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->b0:Lcom/estrongs/android/util/TypedMap;

    const-string v1, "load_next_page"

    invoke-virtual {v0, v1}, Lcom/estrongs/android/util/TypedMap;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    xor-int/lit8 v0, v0, 0x1

    return v0
.end method

.method public v0()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->v0()V

    .line 2
    sget-object v0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->j1:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->clear()V

    return-void
.end method

.method public y0()V
    .locals 4

    const/4 v0, 0x1

    .line 1
    invoke-direct {p0, v0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->j(Z)V

    .line 2
    iget-object v1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->y:Ljava/lang/String;

    const-string v2, "SP://"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 3
    invoke-direct {p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->P0()Z

    move-result v1

    iput-boolean v1, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->P:Z

    if-eqz v1, :cond_1

    .line 4
    iput-boolean v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->R:Z

    goto :goto_0

    .line 5
    :cond_0
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->y:Ljava/lang/String;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->y:Ljava/lang/String;

    const-string v3, "@pcs"

    invoke-virtual {v1, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 6
    invoke-direct {p0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->P0()Z

    .line 7
    iget-boolean v1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->h1:Z

    if-nez v1, :cond_1

    .line 8
    iput-boolean v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->R:Z

    .line 9
    invoke-virtual {p0, v2}, Lcom/estrongs/android/view/FileGridViewWrapper;->c(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-void

    .line 10
    :catch_0
    :cond_1
    :goto_0
    invoke-super {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->y0()V

    return-void
.end method
